import arrStatus from "./index"
// 创建数据仓库
let reducer = (state = { ...arrStatus.state }, action: { type: string, val: number }) => {
    let newState = JSON.parse(JSON.stringify(state))
    // 判断
    switch (action.type) {
        case arrStatus.upArr:
            arrStatus.actions['upArr'](newState, action)
            break;
        default:
            console.log(123);
    }
    return newState
}

export default reducer